Support '--without-libusb' on Windows build for both of those NT 3.5 guys
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 9 Apr 2006 02:15:33 +0000 (02:15 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 9 Apr 2006 02:15:33 +0000 (02:15 +0000)
that are still roaming the earth.

gpsbabel/configure
gpsbabel/configure.in

index bd5ea3653f2d5adcd08cdf7a91e204b3b4ab1537..b154f56de7b061ede36a023589907d73aee64d9e 100755 (executable)
@@ -2495,8 +2495,14 @@ fi
 
 case "$target" in
     *-*-cygwin* | *-*-mingw32*)
-       OSJEEPS=jeeps/gpsusbwin.o
-       USB_LIBS=-lsetupapi
+       if test "$with_libusb" = no ; then
+               echo "$as_me:$LINENO: result: USB skipped" >&5
+echo "${ECHO_T}USB skipped" >&6
+               OSJEEPS=jeeps/gpsusbstub.o
+       else
+               OSJEEPS=jeeps/gpsusbwin.o
+               USB_LIBS=-lsetupapi
+       fi
        ;;
     *)
        echo "$as_me:$LINENO: checking for libusb" >&5
index 25867419f4e1c15e4f0e8e1f358c4cc5b3f29a1d..f2ae19c11e4ba27b9f9f75bd409c98ebb3807dbc 100644 (file)
@@ -23,8 +23,13 @@ AC_CHECK_LIB([m], [cos])
  
 case "$target" in
     *-*-cygwin* | *-*-mingw32*)
-       OSJEEPS=jeeps/gpsusbwin.o
-       USB_LIBS=-lsetupapi
+       if test "$with_libusb" = no ; then
+               AC_MSG_RESULT(USB skipped)
+               OSJEEPS=jeeps/gpsusbstub.o
+       else
+               OSJEEPS=jeeps/gpsusbwin.o
+               USB_LIBS=-lsetupapi
+       fi
        ;;
     *)
        AC_MSG_CHECKING(for libusb)